﻿using System;

namespace StartupSolution.ViewModel
{
    public class GaugeDataViewModel : BaseViewModel
    {
        public GaugeDataViewModel()
        { }

        private double _value;
        public double Value
        {
            get { return _value; }
            set
            {
                _value = value;
                OnPropertyChanged("Value");
            }
        }

        //TODO: Add your custom data generation logic here

        public void GenerateRandomValue()
        {
            Random random = new Random();
            Value = random.NextDouble() * 100;
        }
    }
}
